lcDrwAddImage Home

Adds a new raster image into a drawing.

 HANDLE lcDrwAddImage (
   HANDLE hDrw,
   LPCWSTR szName,
   LPCWSTR szFileName
 );

Parameters
hDrw
  Handle to a drawing object.
szName
  Image name. Must be different from exist images names.
If empty string is specified, then the name will be get from filename (szFileName without path and extention).
szFileName
  Name of a file that contains the image.

Return Value

  Handle to a new raster image.
If the function fails, the return value is NULL.

See Also

  Code sample,   Image reference,   lcBlockAddImageRef